﻿<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/_header :: header"/>
<body>
<div class="page-container">
    <form class="form form-horizontal" th:action="${data.data.asideId == '' ? '/system/categoryAdd' : '/system/categoryUp'}" method="post">
        <input type="hidden" name="asideId" th:value="${data.data.asideId}"/>
        <div id="tab-category" class="HuiTab">
            <div class="tabBar cl">
                <span>基本设置</span>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-3">栏目ID：</label>
                    <div class="formControls col-xs-8 col-sm-9" th:text="${data.data.asideId}"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>栏目名称：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" th:value="${data.data.title}" placeholder="" id="title" name="title"/>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-3">栏目路径：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" th:value="${data.data.href}" placeholder="" id="href" name="href"/>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-3">上级栏目：</label>
                    <div class="formControls col-xs-8 col-sm-9">
						<span class="select-box">
						<select class="select" id="supAsideId" name="supAsideId">
							<option>请选择上级栏目</option>
							<option th:each="item : ${data.asideSelect}" th:selected="${item.asideId eq data.data.supAside}" th:value="${item.asideId}" th:text="${item.title}"></option>
						</select>
						</span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-3">描述：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea name="memo" th:text="${data.data.memo}" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符"></textarea>
                    </div>
                    <div class="col-3">
                    </div>
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;"/>
            </div>
        </div>
    </form>
</div>
</body>
</html>
<footer th:replace="common/_footer :: footer"/>
<footer th:replace="common/_footer :: form"/>
<script type="text/javascript" src="/jq/custom/system/made-category-edit.js"></script>